﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using sixgod.Enum;
using SqlSugar;

namespace sixgod.Model.WorkFlowTemplate.CallBack
{
    /// <summary>
    /// 流程节点回调
    /// 可以用于发起子流程？
    /// </summary>
    [SugarTable("WorkFlowCallBack")]
    public class WorkNodeFlowCallBack : ModelBase
    {
        // TODO 类型：API(Token问题)、SQL、CAP、
        // TODO 预置参数：发起人、审核人、流程ID、审核结果、

        /// <summary>
        /// 类型
        /// </summary>
        public EnumCallBackType EnumCallBackType { get; set; }


        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }


        public void GetContent()
        {

        }

        /// <summary>
        /// 模型数据验证
        /// </summary>
        /// <returns></returns>
        public override (bool, string) Verify()
        {
            return (false, null);
        }
    }
}
